package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Id;

/**
 * 货品资料对象 l_goods
 *
 * @author zyb
 * @date 2022-01-02
 */

@Data
public class LGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "goodsid", type = IdType.AUTO)
    private Long goodsid;

    /** 货品编码 */
    @Excel(name = "货品编码")
    private String code;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String name;

    /** 计费方式 */
    @Excel(name = "计费方式")
    private String unitname;

    /** 默认单价 */
    @Excel(name = "默认单价")
    private BigDecimal price;

    /** 是否中止 */
    @Excel(name = "是否中止")
    private Long closed;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsid", getGoodsid())
            .append("code", getCode())
            .append("name", getName())
            .append("unitname", getUnitname())
            .append("price", getPrice())
            .append("closed", getClosed())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
